<div id="content">
                    	<h3>Doanh thu</h3>                        
                        <div id="contentFunc">
                            <div class="search">
                            	
								<?php 
                                    $attributes = array('id'=>'frmDT','name'=>'frmDT','method'=>'get');
                                    echo form_open_multipart('Thongke/doanhthu',$attributes);	         
							  				$optionsthang = array();
											for($i=1;$i<=12 ;$i++)
											{
												$optionsthang[$i]=$i;
											}
											
											$optionsnam = array();
											for($j=2000;$j<=2100 ;$j++)
											{
												$optionsnam[$j]=$j;
											}
										echo "	<label >Tháng: </label>";
										 if(isset($thang))
											{
											echo form_dropdown('thang', $optionsthang, $thang); 
											}
										 else
											{
											echo form_dropdown('thang', $optionsthang,null);
											}	
										echo "	<label >Năm: </label>";
										 if(isset($nam))
											{
											echo form_dropdown('nam', $optionsnam, $nam); 
											}
										 else
											{
											echo form_dropdown('nam', $optionsnam,null);
											}			
										 
								?>
                                <input type="submit" id="btnSearch" value="Tìm"/>
                                </form>
                            </div>
                            <div class="dataSP">
                                <table class="tableSanPham">
                                    <tr class="colName">
                                        <th class="colValue">STT</th>
                                        <th class="colValue">Ngày</th>
                                        <th class="colValue">Doanh thu(VNĐ)</th> 
                                    </tr>
                                  
                                    <?php 
								
										if(!empty($datas))
										{
											
											for($stt=0 ;$stt<count($datas);$stt++)
											{										
												$ddh=$datas[$stt];
												echo "<tr class='rowValue'>";
													echo "<td class='rowId'>".($stt+1)."</td>";
													echo "<td>{$ddh['ngaydathang']}</td>";
													echo "<td class='rowId'>{$ddh['tongtrigia']}</td>";
												echo "</tr>";
													}	
												}
									?>
                                </table>
                            </div>
                        </div>
                    </div>
            </div>
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            